<!--
 * @Author: MarioGo
 * @Date: 2021-11-22 10:56:43
 * @LastEditTime: 2021-11-22 11:09:43
 * @LastEditors: MarioGo
 * @Description: 文件描述
 * @FilePath: /elm-admin-vite/src/views/axios.vue
 * 可以输入预定的版权声明、个性签名、空行等
-->
<template>
  <div>
    <h1>axios</h1>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue';
import axios from '../utils/axios';
export default defineComponent({
  name: 'axios',
  setup() {
    axios
      .get('/users/XPoet')
      .then((res) => {
        console.log('res: ', res);
      })
      .catch((err) => {
        console.log('err: ', err);
      });
  },
});
</script>

<style scoped></style>
